<?php

class XmlOutput implements RegistryObject, ReportOutput {

	public function setup() {
	}

	public function getTitle() {
		return "xml";
	}

	public function write($reportObj, $outputfile = null) {
		header("Content-Type: text/xml");
		echo $reportObj->getContent();
	}

}

Registry::register("output", new XmlOutput());

?>